<?php
	/*
	* @package ToboAds Module
	* @copyright Copyright (C) 2007 Joomlaspan.com. All rights reserved.
	* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
	* Joomla! is free software.
	* This extension is made for Joomla version 1.0.x;
	* Also works for Joomla 1.5 in legacy mode;
	*/

	/**
	This file is part of ToboAds plugins.
	
	ToboAds plugins is free software; you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation; either version 2.1 of the License, or
	(at your option) any later version.
	
	ToboAds plugins is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.
	
	You should have received a copy of the GNU Lesser General Public License
	along with WideImage; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
	**/



defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

//publisher
$publisher_id = $params->get('toboads_publisher_id');

//format
$toboads_ad_format = $params->get('toboads_ad_format', '120x240');

//type
$type_text = $params->get('toboads_ad_type_text') ? 'true' : 'false';
$type_shop = $params->get('toboads_ad_type_shop') ? 'true' : 'false';
$type_rich = $params->get('toboads_ad_type_rich') ? 'true' : 'false';

//colors
$color_border = $params->get('toboads_color_border');
$color_bg = $params->get('toboads_color_bg');
$color_title = $params->get('toboads_color_title');
$color_text = $params->get('toboads_color_text');
$color_link = $params->get('toboads_color_link');

//start
echo "
<!-- ToboAds -->
<script language=\"javascript\" type=\"text/javascript\">
<!--
	toboads_publisher_id = \"" . $publisher_id . "\";
	toboads_ad_format = \"" . $toboads_ad_format . "\";
	toboads_ad_type_text = \"" . $type_text . "\";
	toboads_ad_type_text = \"" . $type_shop . "\";
	toboads_ad_type_text = \"" . $type_rich . "\";
	toboads_color_border = \"" . $color_border . "\";
	toboads_color_bg = \"" . $color_bg . "\";
	toboads_color_title = \"" . $color_title . "\";
	toboads_color_link = \"" . $color_text . "\";
	toboads_color_text = \"" . $color_link . "\";
// -->
</script>
";
echo "<script language=\"javascript\" type=\"text/javascript\" src=\"http://relay-si.toboads.com/\">\r\n";
echo "</script>\r\n";
echo "<!-- /ToboAds -->\r\n";

?>